package Serveur;

public class Utilisateur {
	private TraitementClient client;
	private String id;
	private String mdp;
	private boolean etatConnexion;

	public Utilisateur(String id, String mdp) {
		this.id = id;
		this.mdp = mdp;
		this.etatConnexion=false;
	}
	
	public String getMdp(){
		return this.mdp;
	}
	
	public String getid(){
		return this.id;
	}
	
	public boolean getEtat(){
		return this.etatConnexion;
	}
	
	public void setEtatConnexion(boolean etat){
		this.etatConnexion=etat;
	}
	
	public void lierTraitementClient(TraitementClient client){
		this.client=client;
	}
	
	public void envoitMessage(String message,String id){
		this.client.transmettreMessage(message,id);
	}
}
